package com.rambler.common.entity;

import java.util.Arrays;
import java.util.List;

/**
 * @author suhao
 * @date 2025/7/28
 * @description 全局常量类
 */
public class GlobalConst {
    /* 成功状态码 */
    public static final Integer SUCCESS = 200;
    /* 失败状态码 */
    public static final Integer ERROR = 201;
    public static final Integer UN_LOGIN = 403;

    /* 用户部分 */
    public static final String CURRENT_USER = "user";

    public static final Integer STATUS_NORMAL = 0;
    public static final Integer STATUS_DELETED = 1;
    public static final Integer STATUS_OTHER = 2;

    /* session超时时间(秒) */
    public static final Integer SESSION_TIMEOUT = 30;

    /* EChart部分 */
    public static final Integer TOP5 = 1;
    public static final Integer TOP5_15 = 2;
    public static final Integer TOP_LAST = 3;

    /* 日志操作类型常量定义 */
    public static final String DELETE = "删除";
    public static final String LOGIC_DELETE = "逻辑删除";
    public static final String UPDATE = "更新";
    public static final String ADD = "新增";
    public static final String UPLOAD = "上传文件";
    public static final String RECYCLE = "还原";

    /* 日志操作模块常量定义 */
    public static final String ARTICLE = "文章";
    public static final String REPLY = "评论";
    public static final String VISITOR = "系统访客";
    public static final String WORDS = "碎碎念";
    public static final String USER = "用户";
    public static final String FILE = "OSS系统";
    public static final String FRIEND = "友情链接";
    public static final String LOG = "日志";
    public static final String CLASSIFY = "文章分类";
    public static final String TAG = "文章标签";
    public static final String COLLECTION = "收藏夹";
    public static final String COLLECTION_CLASSIFY = "收藏夹分类";
    public static final String MENU = "菜单";
    public static final String SETTING = "系统设置";
    public static final String PROJECT = "实战项目";

    public static final String TOKEN_HEADER = "Authorization";

    /**
     * 拦截白名单
     */
    public static final List<String> WHITE_LIST = Arrays.asList("/api/user/oauth", "/api/menu/**");
}
